/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Facade;

import Modelo.DaoGuardiaFactory;
import Modelo.DaoGuardiaInterface;
import VO.GuardiaVO;
import java.util.Vector;
import javax.management.InstanceNotFoundException;
import utiles.exceptions.DataException;

/**
 *
 * @author Jorge
 */
public class GuardiaFacade {
     public boolean registrarGuardia(GuardiaVO nuevo)throws Exception, DataException, InstanceNotFoundException
    {
        DaoGuardiaInterface dao  = (DaoGuardiaInterface)DaoGuardiaFactory.getDAO();
        boolean resultado = dao.registrarGuardia(nuevo);

        return resultado;
    }

      public Vector cargarGuardias()throws Exception, DataException, InstanceNotFoundException
    {
        DaoGuardiaInterface dao  = (DaoGuardiaInterface)DaoGuardiaFactory.getDAO();
        Vector resultado = dao.cargarGuardias();

        return resultado;
    }
}
